def sum_numbers(*args):
    num = 0
    print(args)
    for n in args:
        num += n
    return num


result = sum_numbers(1, 2, 3, 4)
print(result)


# 传递元祖的方式
def sum_1_numbers(args):
    num = 0
    print(args)
    for n in args:
        num += n
    return num


result = sum_1_numbers((1, 2, 3, 4))
print(result)
